<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Site;

class SiteController extends Controller
{

    public function index(){
        return view('admin.site',['site'=>Site::firstOrFail()]);
    }
    public function update(Request $request){
        Site::find(1)->update($request->all());
        return back();
    }
}
